<template>
  <div class="dashboard-container">
    <div class="dashboard-editor-container">
      <github-corner class="github-corner" />
      <div class="hero-title">
        <span class="title-text">公立小学办公管理信息管理系统</span>
        <div class="title-decoration" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Dashboard'
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  .github-corner {
    position: absolute;
    top: 0;
    border: 0;
    right: 0;
  }

  .hero-title {
    position: relative;
    text-align: center;
    padding: 2rem;
    overflow: hidden;

    .title-text {
      font-family: 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
      font-size: 2.8rem;
      font-weight: 700;
      letter-spacing: 2px;
      background: linear-gradient(45deg, #2c3e50 30%, #3498db 70%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
      position: relative;
      display: inline-block;
      padding: 0 1rem;
      animation: titleEnter 1s ease-out;

      &::before,
      &::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background: #3498db;
        top: 50%;
        transform: translateY(-50%);
      }

      &::before {
        left: -70px;
      }

      &::after {
        right: -70px;
      }
    }

    .title-decoration {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 120px;
      height: 4px;
      background: linear-gradient(90deg, transparent, #3498db, transparent);
      border-radius: 2px;
      animation: lineScale 2s infinite;
    }
  }

  @keyframes titleEnter {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes lineScale {
    0%, 100% {
      width: 120px;
    }
    50% {
      width: 180px;
    }
  }

  @media (max-width: 768px) {
    .hero-title .title-text {
      font-size: 2rem;
      &::before,
      &::after {
        width: 30px;
      }
      &::before {
        left: -40px;
      }
      &::after {
        right: -40px;
      }
    }
  }
}
</style>
